package create.rpc.server;

import create.rpc.annotation.Service;
import create.rpc.api.HelloObject;
import create.rpc.api.HelloService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


@Service
public class HelloServerImpl implements HelloService
{
   private static final Logger logger =LoggerFactory.getLogger(HelloServerImpl.class);

    @Override
    public String hello(HelloObject object) {
        logger.info("接收到：{}",object.getMessage());
        return "这是调用的返回值，id="+object.getId();
    }
}
